package com.by.biz;

import com.by.dao.TbDao;
import com.by.entity.Tb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TbBizImpl implements TbBiz{
    @Autowired
    private TbDao tbDao;
    @Override
    public List<Tb> queryTbList() {
        return tbDao.queryTbList();
    }

    @Override
    public Tb addTb(Tb tb) {
        return tbDao.addTb(tb);
    }

    @Override
    public int delTb(int id) {
        return tbDao.delTb(id);
    }

    @Override
    public int update(Tb tb) {
        return tbDao.update(tb);
    }
}
